<?php

require_once('lib/Constants.php');
require_once('lib/Invite.php');
require_once('lib/MixiAppliAPI.php');

$api = new MixiAppliAPI(array_merge($_GET, $_POST));

$api->validate_params(array(
    'invite_id' => array('not_blank', 'is_numeric'),
));

$invite = new Invite($api->params['invite_id']);

if ($invite->id != $api->params['invite_id'])
    $api->set_error('could not load invite invite_id: '.$api->params['invite_id']);

$api->set_result($invite);

?>
